import { NestFactory } from '@nestjs/core';
import { AppModule } from './modules/app.module';
import { logger } from './middleware/logger.middleware';
import { HttpExceptionFilter } from './modules/cats/http-exception.filter';
import { RolesGuard } from './modules/cats/roles.guard';

async function bootstrap() {
  const app = await NestFactory.create(AppModule, {});
  //global middleware
  app.use(logger);
  await app.listen(3000);
}
bootstrap();
